home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************/
- /* Name: PStrCmp Module Implementation */
- /* */
- /* Purpose: Return TRUE if two Pascal strings are identical */
- /* (case sensitive), or FALSE otherwise. */
- /* */
- /* Author: Steve Nies */
- /* */
- /* Date created: 28 April 89 */
- /* */
- /* Disclaimer: This software has been developed privately by the */
- /* Author and has been released into the Public Domain. The */
- /* author makes no claims as to the correctness or suitability */
- /* of the software for the intended purpose. */
- /************************************************************************/
-
- #include <Style.h>
-
- Boolean PStrCmp ( register address target, register address source )
-
- BEGIN
- register string src = (string) source;
- register string trgt = (string) target;
- register int length = *src + 1;
- WHILE length-- LOOP
- if (*trgt++ != *src++) return FALSE;
- END_LOOP;
- return TRUE;
- END